package com.supermarket.manage.common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 客户实体类
 *
 * @author: Faxon
 * @data: 2020/2/26
 */
@ApiModel(value = "Buyer:客户实体类")
@Data
@TableName("tb_buyer")
public class Buyer implements Serializable {

    private static final long serialVersionUID = 1486019083309007661L;

    /**
     * 客户id
     */
    @ApiModelProperty(value = "客户id")
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 超市名称
     */
    @ApiModelProperty(value = "超市名称")
    private String shopName;

    /**
     * 客户名称
     */
    @ApiModelProperty(value = "客户名称")
    private String name;

    /**
     * 电话
     */
    @ApiModelProperty(value = "电话")
    private String phone;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date created;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updated;
}
